package com.example.Blog.model;

import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import java.util.Date;

@Entity
public class Article {
    @Id
    private int articleId;
    private String articleContent;
    private String articleType;
    private String articleTitle;
    private int articleLikes;
    private Date articleTime;
    private int articleStars;
    private int articleBelongTo;

    public Article(){

    }

    public Article(int articleId, String articleContent, int uid){
        this.articleId = articleId;
        this.articleContent = articleContent;
        this.articleLikes = 0;
        this.articleStars = 0;
        this.articleBelongTo = uid;
    }

    public int getArticleId() {
        return articleId;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public int getArticleLikes() {
        return articleLikes;
    }

    public int getArticleStars() {
        return articleStars;
    }

    public int getArticleBelongTo() {
        return articleBelongTo;
    }

    public Date getArticleTime() {
        return articleTime;
    }

    public void setArticleTime(Date articleTime) {
        this.articleTime = articleTime;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }

    public void setArticleLikes(int articleLikes) {
        this.articleLikes = articleLikes;
    }

    public void setArticleStars(int articleStars) {
        this.articleStars = articleStars;
    }

    public void setArticleBelongTo(int articleBelongTo) {
        this.articleBelongTo = articleBelongTo;
    }
}
